package biz.impl;

import java.util.List;

import biz.FoodBiz;
import dao.FoodDao;
import dao.impl.FoodDaoImpl;
import entity.Food;


public class FoodBizImpl implements FoodBiz{
	FoodDao fd =new FoodDaoImpl();
	@Override
	public List<Food> getNewFoodsTop3() {
		return fd.getNewFoodsTop3();
	}
	@Override
	public Food getDetailsMeun(int id) {
		return fd.getDetailsMeun(id);
	}

	@Override
	public List<Food> getFoodsListByCategoryId(int pageNum, int pageSize, int categoryid, String search) {
		return fd.getFoodsListByCategoryId(pageNum, pageSize, categoryid, search);
	}
	@Override
	public List<Food> getFoodsListByCategoryIdAndSearch(int categoryid, String search) {
		return fd.getFoodsListByCategoryIdAndSearch(categoryid, search);
	}

}
